package com.kfm.company.mapper;

import com.kfm.company.model.Role;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
* @author ASUS
* @description 针对表【role】的数据库操作Mapper
* @createDate 2023-11-07 16:47:42
* @Entity com.kfm.company.model.Role
*/
@Mapper
public interface RoleMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Role record);

    int insertSelective(Role record);

    Role selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Role record);

    int updateByPrimaryKey(Role record);

    List<Role> selectAll();

    /**
     * 根据用户id查询所有角色信息
     * @param uid 用户id
     * @return
     */
    List<Role> selectByUid(Integer uid);

}
